<?php

namespace app\yunda\validate;
use think\Validate;
class System extends Validate
{
    //定义验证规则
    protected $rule = [
        'config_name|配置标识' => 'require|alphaDash|unique:yd_system',
        'config_title|配置名称' => 'require|chs',
        'config_value|配置值' => 'require',

    ];

    //定义验证提示
    protected $message = [
        'config_name.unique' => '配置标识必须唯一',

    ];

    protected $scene=[
        'edit'=>['config_value'=>'require',],
    ];

}
